home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_escape.swf / scripts / DefineSprite_237_game_world_powerUps_U#rotateP / frame_1 / DoAction.as
Text File  |  2007-01-15  |  436b  |  12 lines

  1. this.onEnterFrame = function()
  2. {
  3.    var _loc1_ = _root;
  4.    var _loc2_ = this;
  5.    if(_loc1_.game.ship.hitTest(_loc2_._x + _parent._parent._x,_loc2_._y + _parent._parent._y,true) && _loc1_.game.ship.active == true)
  6.    {
  7.       _loc1_.game.ship.rotate += (_loc1_.limitsArray[2][1] - _loc1_.limitsArray[2][0]) / 3;
  8.       _loc1_.game.world.powerUpsTextMessage(_loc2_._x,_loc2_._y,"Rotate+");
  9.       removeMovieClip(_loc2_);
  10.    }
  11. };
  12.